﻿using System;

namespace Sanjeet.FastCopy.FileCopyLogic.Design2
{
    public class FileTask : IFileTask
    {
        private IAsyncOperation<IAsyncable> asyncOperator;

        #region IFileTask Members

        public string Source
        {
            get { throw new NotImplementedException(); }
            set { throw new NotImplementedException(); }
        }

        public string Destination
        {
            get { throw new NotImplementedException(); }
            set { throw new NotImplementedException(); }
        }

        public bool SubFolders
        {
            get { throw new NotImplementedException(); }
            set { throw new NotImplementedException(); }
        }

        public bool Overwrite
        {
            get { throw new NotImplementedException(); }
            set { throw new NotImplementedException(); }
        }

        public void Copy()
        {
            asyncOperator.Start();
        }

        public void Move()
        {
            asyncOperator.Start();
        }

        public void Delete()
        {
            asyncOperator.Start();
        }

        public void Create()
        {
            asyncOperator.Start();
        }

        public IAsyncOperation<IAsyncable> Operator
        {
            get { return asyncOperator; }
            set { asyncOperator = value; }
        }

        #endregion
    }
}